package com.ltx.blog_ltx.mapper;

import com.ltx.blog_ltx.entity.pojo.Attention;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface attentionMapper {

    //关注
    int AttentionUser(Attention attention);

    //取消关注
    int deleteAttention(int userId,int userdId);

    //是否关注
    Integer isAttention(int userId,int userdId);

    //拿到所有的自己关注的人的id
    List<Integer> AllAttention(int userId);
}
